//获取应用实例
const app = getApp();
// 引入AES.js
var baseJs = require("../../common/base.js");
Page({

  /**
   * 页面的初始数据
   */
  data: {
    imgUrl: baseJs.imgUrl,
    videoData: [],
    // 
    uid:"",
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function(options) {
    this.setData({
      uid: wx.getStorageSync('uid'),
    })
    this.GetStudyVideo();
  },
  // 
  GetStudyVideo: function() {
    var that = this;
    var uid = this.data.uid;
    var videoData = this.data.videoData;
    wx.request({
      url: baseJs.api + baseJs.encryUrl("method=GetStudyVideo&UID=" + uid),
      success: function(res) {
        var json = JSON.parse(baseJs.decryUrl(res.data)).ResultData;
        console.log(json);
        that.setData({
          videoData:json,
        })

      }
    })
  },
  // 
})